﻿import axios from './AxiosHelper'

export const getInvoice = async () => {
  try {
    const res = await axios.get('Customer/Invoice')
    return res.data
  } catch (e) {
    console.warn('无权限')
    return null
  }
}

export const getOrderConfirmCarts = async () => {
  try {
    const res = await axios.get('OrderConfirm')
    return res.data
  } catch (e) {
    console.warn('无权限')
    return null
  }
}

export const addOrder = async (data:any) => {
  const res = await axios.post('OrderConfirm',data)
  return res.data
}
